home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / Universal Headers 2.0.1f / CMComponent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-22  |  4.2 KB  |  139 lines  |  [TEXT/MMCC]

  1. /*
  2.      File:        CMComponent.h
  3.  
  4.      Contains:    Color Matching Component Interfaces.
  5.  
  6.      Version:    Technology:    Color Sync 1.0.5
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __CMCOMPONENT__
  21. #define __CMCOMPONENT__
  22.  
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifndef __QUICKDRAW__
  30. #include <Quickdraw.h>
  31. #endif
  32. /*    #include <MixedMode.h>                                        */
  33. /*    #include <QuickdrawText.h>                                    */
  34.  
  35. #ifndef __COMPONENTS__
  36. #include <Components.h>
  37. #endif
  38.  
  39. #ifndef __WINDOWS__
  40. #include <Windows.h>
  41. #endif
  42. /*    #include <Memory.h>                                            */
  43. /*    #include <Events.h>                                            */
  44. /*        #include <OSUtils.h>                                    */
  45. /*    #include <Controls.h>                                        */
  46. /*        #include <Menus.h>                                        */
  47.  
  48. #ifndef __CMAPPLICATION__
  49. #include <CMApplication.h>
  50. #endif
  51. /*    #include <Printing.h>                                        */
  52. /*        #include <Errors.h>                                        */
  53. /*        #include <Dialogs.h>                                    */
  54. /*            #include <TextEdit.h>                                */
  55.  
  56. #ifdef __cplusplus
  57. extern "C" {
  58. #endif
  59.  
  60. #if PRAGMA_ALIGN_SUPPORTED
  61. #pragma options align=mac68k
  62. #endif
  63.  
  64. #if PRAGMA_IMPORT_SUPPORTED
  65. #pragma import on
  66. #endif
  67.  
  68.  
  69. enum {
  70.     CMInterfaceVersion            = 0
  71. };
  72.  
  73. /* CMM Component function selectors */
  74. enum {
  75.     kCMInit                        = 0,
  76.     kCMMatchColors                = 1,
  77.     kCMGamutTest                = 2,
  78.     kCMMatchPixMap                = 3,
  79.     kCMCheckPixMap                = 4,
  80.     kCMConcatenateProfiles        = 5
  81. };
  82.  
  83. /* Profile Responder Components */
  84. enum {
  85.     ProfileResponderInterfaceRev = 0
  86. };
  87.  
  88. /* ProfileResponder Component function selectors */
  89. enum {
  90.     kCMGetProfile                = 0,
  91.     kCMSetProfile                = 1,
  92.     kCMSetProfileDescription    = 2,
  93.     kCMGetIndexedProfile        = 3,
  94.     kCMDeleteDeviceProfile        = 4,
  95.     kProfileResponderMaxSelector = kCMDeleteDeviceProfile
  96. };
  97.  
  98. typedef ComponentInstance ProfileResponder;
  99.  
  100. /* Required CMM Component routines */
  101. extern pascal CMError CMInit(ComponentInstance CMSession, CMProfileHandle srcProfile, CMProfileHandle dstProfile)
  102.  FIVEWORDINLINE(0x2F3C, 0x0008, 0, 0x7000, 0xA82A);
  103. extern pascal CMError CMMatchColors(ComponentInstance CMSession, CMColorList myColors, long count)
  104.  FIVEWORDINLINE(0x2F3C, 0x0008, 1, 0x7000, 0xA82A);
  105. extern pascal CMError CMCheckColors(ComponentInstance CMSession, CMColorList myColors, long count, CMGamutResult result)
  106.  FIVEWORDINLINE(0x2F3C, 0x000C, 2, 0x7000, 0xA82A);
  107. /* Optional CMM Component routines */
  108. extern pascal CMError CMMatchPixMap(ComponentInstance CMSession, PixMap *myPixMap, PixMapCallBackUPP progressProc, long refCon)
  109.  FIVEWORDINLINE(0x2F3C, 0x000c, 3, 0x7000, 0xA82A);
  110. extern pascal CMError CMCheckPixMap(ComponentInstance CMSession, PixMap *myPixMap, PixMapCallBackUPP progressProc, BitMap *myBitMap, long refCon)
  111.  FIVEWORDINLINE(0x2F3C, 0x0010, 4, 0x7000, 0xA82A);
  112. extern pascal CMError CMConcatenateProfiles(ComponentInstance CMSession, CMProfileHandle thru, CMProfileHandle dst, CMProfileHandle *newDst)
  113.  FIVEWORDINLINE(0x2F3C, 0x000C, 5, 0x7000, 0xA82A);
  114. /* ProfileResponder Component routines */
  115. extern pascal CMError CMGetProfile(ProfileResponder myProfileResponder, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  116.  FIVEWORDINLINE(0x2F3C, 0x0008, 0, 0x7000, 0xA82A);
  117. extern pascal CMError CMSetProfile(ProfileResponder myProfileResponder, CMProfileHandle newProfile)
  118.  FIVEWORDINLINE(0x2F3C, 0x0004, 1, 0x7000, 0xA82A);
  119. extern pascal CMError CMSetProfileDescription(ProfileResponder myProfileResponder, long DeviceData, CMProfileHandle hProfile)
  120.  FIVEWORDINLINE(0x2F3C, 0x0008, 2, 0x7000, 0xA82A);
  121. extern pascal CMError CMGetIndexedProfile(ProfileResponder myProfileResponder, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  122.  FIVEWORDINLINE(0x2F3C, 0x000C, 3, 0x7000, 0xA82A);
  123. extern pascal CMError CMDeleteDeviceProfile(ProfileResponder myProfileResponder, CMProfileHandle deleteMe)
  124.  FIVEWORDINLINE(0x2F3C, 0x0004, 4, 0x7000, 0xA82A);
  125.  
  126. #if PRAGMA_IMPORT_SUPPORTED
  127. #pragma import off
  128. #endif
  129.  
  130. #if PRAGMA_ALIGN_SUPPORTED
  131. #pragma options align=reset
  132. #endif
  133.  
  134. #ifdef __cplusplus
  135. }
  136. #endif
  137.  
  138. #endif /* __CMCOMPONENT__ */
  139.